package com.zhy.usercenter.mapper;


import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.zhy.usercenter.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


/**
 * @author 随缘而愈
 * @version 2.0
 * @description dao
 * @date 21/2/2024 下午1:55
 */

public interface UserMapper extends BaseMapper<User> {

    /**
     * 自定义sql
     * 查找最后一条信息
     */
    @Select("select * from user ${ew.customSqlSegment}")
    User getEnd(@Param(Constants.WRAPPER) Wrapper wrapper);
}